package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberMessageGetLIst;
/**
 * 获取我的系统消息列表，分为两种类型普通消息和优惠券到期提醒消息，优惠券的消息点击固定跳转到我的优惠券列表（未使用状态）
 * @author wliu
 * edit tse
 */
public class MemberMessageGetLIstResponse extends RudderResponse{
    
    private List<MemberMessageGetLIst> getLIst = new ArrayList<MemberMessageGetLIst>();
		
	
    /**
     * @return getLIst
     */	
    public List<MemberMessageGetLIst> getGetLIst() { 
	    return this.getLIst;
    };
	
	/**
     * @return getLIst
     */	
    public void setGetLIst(List<MemberMessageGetLIst> getLIst) { 
        this.getLIst = getLIst;
    };
    
	
        
    private static void filterFor(MemberMessageGetLIst member) {
        if (member.getMessageId() == null) {
            member.setMessageId("");
        }
        if (member.getMessageContent() == null) {
            member.setMessageContent("");
        }
        if (member.getMessageType() == null) {
            member.setMessageType("");
        }
        if (member.getMessageTime() == null) {
            member.setMessageTime("");
        }
    }
        
    public static void filter(MemberMessageGetLIstResponse member) {
        if (member.getGetLIst() == null) {
            member.setGetLIst(new ArrayList<MemberMessageGetLIst>());
        } else {
            for (MemberMessageGetLIst item : member.getGetLIst()) {
                filterFor(item);
            }
        }
    }
}
